package com.zhongyi.service;

import com.zhongyi.dao.UserDao;
import com.zhongyi.domain.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserService {

    @Autowired
    private UserDao userDao;

    public List<User> findAll(){
        return  userDao.findAll();
    }

    public void saveUser(User user){
        userDao.saveUser(user);
    }

}
